import java.io.*;
public class deserilize {
	public static void main(String[] args) {
		Employee[] e=new Employee[2];
		FileInputStream fi=null;
		ObjectInputStream oi = null;
		
		try{
			fi=new FileInputStream("e.ser");
			oi=new ObjectInputStream(fi);
			for (int i = 0; i < e.length; i++) {
				e[i] = (Employee) oi.readObject();
			}
					}
		catch(IOException i){
			i.printStackTrace();
			return;
		}
		
		catch(ClassNotFoundException c){
			System.out.println("class not found");
			c.printStackTrace();
			
			
		
		}
		finally{
      
		try{
			for (int j = 0; j < e.length; j++) {
				System.out.println("de");
				System.out.println("id" + e[j].id);
				System.out.println("address" + e[j].address);
				System.out.println("SSn" +e[j].ssn);
			
			
			}
		
		oi.close();
		fi.close();
		}
		catch(Exception ex){
			ex.printStackTrace();
		}

		}
	}
		
		

	}
